package cn.zwx.member.svc.domain.warp;

import cn.zwx.base.exception.BizWrapException;
import cn.zwx.member.svc.domain.enums.MemberCodeEnum;

/**
 * @author zhangwenxue
 */
public class ExceptionWrap {


    public static BizWrapException wrap(MemberCodeEnum memberCodeEnum){
        return new BizWrapException(memberCodeEnum.getCode(),memberCodeEnum.getMsg());
    }
}
